all:
	swig -ruby  -outdir ./ ../octopus_native.i
	gcc -fPIC -c ../../liboctopus/src/octopus.c
	gcc -fPIC -c ../octopus_native_wrap.c -I/usr/lib/ruby/1.8/i486-linux
	gcc -fPIC -shared octopus_native_wrap.o octopus.o /usr/lib/libusb.so -o octopus_native.so

clean:
	rm -f *.o *.so

